package com.cragon.entity;

import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @Author: ZHOUHAILONG
 * @Date: 2020年10月21日 10:59
 */
@Component
public class Person {
	private Cat cat;
	private Dog dog;

	public Person() {
		System.out.println("Person ");
	}

	/*public Person(Cat cat) {
		this.cat = cat;
	}

	public Person(Cat cat, Dog dog, String str) {
		System.out.println("The last constructor");
		this.cat = cat;
		this.dog = dog;
	}
	public Person(Cat cat, Dog dog) {
		System.out.println("The constructor of the person");
		this.cat = cat;
		this.dog = dog;
	}*/

	public void setNot(Cat cat) {
		System.out.println("Test");
	}

	public Cat getCat() {
		return cat;
	}

	public void setCat(Cat cat) {
		this.cat = cat;
	}

	public Dog getDog() {
		return dog;
	}

	public void setDog(Dog dog) {
		this.dog = dog;
	}
}
